From d59784f7c74ba6f447f0d2b551a41ea71fed95a2 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 21 Jan 2020 12:48:20 +0100 Subject: [PATCH] win32: Don't save/restore the context for querying the font Use the font in the current state. --- gtk/gtkimcontextime.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/gtk/gtkimcontextime.c b/gtk/gtkimcontextime.c index ec009d40bb..241ac3d99f 100644 --- a/gtk/gtkimcontextime.c +++ b/gtk/gtkimcontextime.c @@ -924,13 +924,10 @@ gtk_im_context_ime_set_preedit_font (GtkIMContext *context) } style = gtk_widget_get_style_context (widget); - gtk_style_context_save (style); - gtk_style_context_set_state (style, GTK_STATE_FLAG_NORMAL); gtk_style_context_get (style, "font", &font_desc, NULL); - gtk_style_context_restore (style); if (lang[0]) { -- 2.30.2